<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>日期对象</title>
</head>
<body>
    <script>
        const date=new Date()
        // document.write(date.toLocaleDateString())//2023/11/30
        // document.write(date.toDateString())//Thu Nov 30 2023
        // document.write(date.toLocaleString())//2023/11/30 16:33:28
        // document.write(date.toLocaleTimeString())//16:33:51
        
    </script>
</body>
</html>